package com.kaibes.web.filter;

import java.util.List;

import org.springframework.core.annotation.Order;
import org.springframework.web.servlet.HandlerInterceptor;

public interface BasicInterceptor extends HandlerInterceptor {
    default int order() {
        Order order = getClass().getDeclaredAnnotation(Order.class);
        if (order == null) {
            return 0;
        } else {
            return order.value();
        }
    }
    
    default List<String> patterns() {
        return null;
    }
}
